<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        div{
            position: relative;
            width: 200px;
            height: 35px;
            line-height: 35px;
            border: 1px solid red;
            margin: 20px;
        }
          /* 字体声明 */
          @font-face {
            font-family: 'icomoon';
            src: url('案例/fonts/icomoon.eot?fn6gwm');
            src: url('案例/fonts/icomoon.eot?fn6gwm#iefix') format('embedded-opentype'),
                url('案例/fonts/icomoon.ttf?fn6gwm') format('truetype'),
                url('案例/fonts/icomoon.woff?fn6gwm') format('woff'),
                url('案例/fonts/icomoon.svg?fn6gwm#icomoon') format('svg');
            font-weight: normal;
            font-style: normal;
            font-display: block;
        }
        div::after{
            /* 伪元素必写 */
            /* content: ''; */
            content: '\ea43';
            /* 图标必写 */
            font-family: 'icomoon';
            position: absolute;
            right: 10px;
            color: red;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>